package web.fabrimind.pm.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import web.fabrimind.common.annotation.Excel;
import web.fabrimind.common.core.domain.BaseEntity;

/**
 * BOM对象 bom
 * 
 * @author zhihui
 * @date 2025-03-25
 */
public class Bom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** BOM ID */
    private Long bomId;

    /** BOM编号 */
    @Excel(name = "BOM编号")
    private String bomCode;

    /** BOM名称 */
    @Excel(name = "BOM名称")
    private String bomName;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** BOM类型 */
    @Excel(name = "BOM类型")
    private String bomType;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    /** 状态（0使用中 1已归档） */
    @Excel(name = "状态", readConverterExp = "0=使用中,1=已归档")
    private String status;

    /** BOM明细信息 */
    private List<BomDetail> bomDetailList;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setBomId(Long bomId)
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setBomCode(String bomCode) 
    {
        this.bomCode = bomCode;
    }

    public String getBomCode() 
    {
        return bomCode;
    }
    public void setBomName(String bomName) 
    {
        this.bomName = bomName;
    }

    public String getBomName() 
    {
        return bomName;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setBomType(String bomType) 
    {
        this.bomType = bomType;
    }

    public String getBomType() 
    {
        return bomType;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<BomDetail> getBomDetailList()
    {
        return bomDetailList;
    }

    public void setBomDetailList(List<BomDetail> bomDetailList)
    {
        this.bomDetailList = bomDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bomId", getBomId())
            .append("bomCode", getBomCode())
            .append("bomName", getBomName())
            .append("productId", getProductId())
            .append("bomType", getBomType())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("bomDetailList", getBomDetailList())
            .toString();
    }
}
